

_realname=EGL-Registry
_name=egl-headers
_specver=1.5
pkgbase=mingw-w64-${_name}
pkgname="${MINGW_PACKAGE_PREFIX}-${_name}"
pkgver=1.5.r255.9ab6036
pkgrel=1
_commit=9ab603608d6b165f79f17eee9ee1ced861625893
pkgdesc="EGL header files (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url="https://registry.khronos.org/EGL/"
license=('spdx:Apache-2.0')
depends=()
makedepends=("git")
source=("git+https://github.com/KhronosGroup/EGL-Registry.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd ${_realname}
  printf "${_specver}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

package() {
  cd ${srcdir}/${_realname}/api

  install -d ${pkgdir}${MINGW_PREFIX}/include/EGL
  install -Dm644 ${srcdir}/${_realname}/api/EGL/* ${pkgdir}${MINGW_PREFIX}/include/EGL
}
